import request from '@/utils/request'

// 查询管家中奖记录列表
export function listChamberlainPrize(query) {
  return request({
    url: '/prize/chamberlainPrize/list',
    method: 'get',
    params: query
  })
}

// 查询管家中奖记录详细
export function getChamberlainPrize(id) {
  return request({
    url: '/prize/chamberlainPrize/' + id,
    method: 'get'
  })
}

// 新增管家中奖记录
export function addChamberlainPrize(data) {
  return request({
    url: '/prize/chamberlainPrize',
    method: 'post',
    data: data
  })
}

// 修改管家中奖记录
export function updateChamberlainPrize(data) {
  return request({
    url: '/prize/chamberlainPrize',
    method: 'put',
    data: data
  })
}

// 删除管家中奖记录
export function delChamberlainPrize(id) {
  return request({
    url: '/prize/chamberlainPrize/' + id,
    method: 'delete'
  })
}
